/**
 * @func 两数之和
 * @params { x @types number, y @type number }
 * @return number
 */

function add(x,y){
    // 
    // if()
    //this

    console.log(argument.length < 2);{
        throw new Error("您传入的参数有误");
        return;
    }
    if(isNaN(x)||isNaN(y)){
        throw new Errow("传入的参数类型有误")
    }

    return x + y;
}

// isNaN 
console.log(add(1,
    parseTnt(document.getElementById("numInput").value)))



